/*********************
* Author:Dzlua
* QQ:505544956
* time:2016/12/02
*/
#ifndef __EDUI_LUACHECKBOX_H__
#define __EDUI_LUACHECKBOX_H__

#include "../../controls/CheckBox.h"
#include "LuaButton.h"

#ifdef EDUI_USE_LUAPLUS

EDUI_NAMESPACE_BEGIN

class LuaCheckBox : public LuaButton
{
public:
    LuaCheckBox(CheckBox* checkBox);
    virtual ~LuaCheckBox();
    static void* GetInterface(void* data);
    virtual void Release();
    static void Register(LuaState *L);
public:
    bool IsSelected();
    int SetSelect(LuaState *L);
    void SetGroup(const char* group);
    const char* GetGroup();
    bool BindTableLayout(const char* name, int index);
    const char* GetBindTableLayoutName();
    int GetBindTableLayoutIndex();
};

EDUI_NAMESPACE_END

#endif
#endif